<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Extert extends Model
{
    use HasFactory;
    protected $fillable = [
        'name','thumb',
        'title','duties',
        'department','hospital',
        'content','edu'
    ];
    public function video(){
        return $this->belongsToMany(Video::class,'video_experts','video_id','expert_id');
    }
}
